/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

public class Usuario {
	public Usuario() {
	}
	
	private int id_usuario;
	
	private String nombre;
	
	private String pass;
	
	private String rut;
	
	private orm.Tarjeta tarjeta;
	
	private void setId_usuario(int value) {
		this.id_usuario = value;
	}
	
	public int getId_usuario() {
		return id_usuario;
	}
	
	public int getORMID() {
		return getId_usuario();
	}
	
	public void setNombre(String value) {
		this.nombre = value;
	}
	
	public String getNombre() {
		return nombre;
	}
	
	public void setPass(String value) {
		this.pass = value;
	}
	
	public String getPass() {
		return pass;
	}
	
	public void setRut(String value) {
		this.rut = value;
	}
	
	public String getRut() {
		return rut;
	}
	
	public void setTarjeta(orm.Tarjeta value) {
		if (this.tarjeta != value) {
			orm.Tarjeta ltarjeta = this.tarjeta;
			this.tarjeta = value;
			if (value != null) {
				tarjeta.setUsuarioid_usuario(this);
			}
			else {
				ltarjeta.setUsuarioid_usuario(null);
			}
		}
	}
	
	public orm.Tarjeta getTarjeta() {
		return tarjeta;
	}
	
	public String toString() {
		return String.valueOf(getId_usuario());
	}
	
}
